package com.hotel.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@AllArgsConstructor
@Data
@NoArgsConstructor
@ApiModel(description = "购物车")
public class ShoppingCar implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 商品id
     */
    private Long productId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品价格
     */
    private BigDecimal price;
    /**
     * 商品数量
     */
    private Integer productNum;
    /**
     * 商品图片
     */
    private String image;
    /**
     * 商品总价
     */
    private BigDecimal amount;
}
